#include<stdio.h>
void find_num_single(int arr[], int se)
{
	int i = 0;
	int ret = 0;
	for (i = 0; i < se; i++)
	{
		ret ^= arr[i];
	}
	int pos = 0;
	for (i = 0; i < 32; i++)
	{
		if ((((ret >> i) & 1) == 1))
		{
			pos = i;
			break;
		}
	}
	int dog1 = 0;
	int dog2 = 0;
	for (i = 0; i < se; i++)
	{
		if ((((arr[i] >> pos) & 1) == 1))
		{
			dog1 ^= arr[i];
		}
	}
	dog2 = dog1 ^ ret;
	printf("%d\n", dog1);
	printf("%d\n", dog2);
}
int main()
{
	int arr[] = { 1,2,3,4,5,6,1,2,3,4 };
	int se = sizeof(arr) / sizeof(arr[0]);
	find_num_single(arr, se);
	return 0;
}